// import com.alibaba.druid.sql.ast.SQLExpr;
// import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;

#include "MySqlShowEventsStatement.h"
#include "../../../../ast/SQLExpr.h"
#include "../../visitor/MySqlASTVisitor.h"

SQLExpr_ptr MySqlShowEventsStatement::getSchema()
{
  return schema;
}

void MySqlShowEventsStatement::setSchema(SQLExpr_ptr schema)
{
  this->schema = schema;
}

SQLExpr_ptr MySqlShowEventsStatement::getLike()
{
  return like;
}

void MySqlShowEventsStatement::setLike(SQLExpr_ptr like)
{
  this->like = like;
}

SQLExpr_ptr MySqlShowEventsStatement::getWhere()
{
  return where;
}

void MySqlShowEventsStatement::setWhere(SQLExpr_ptr where)
{
  this->where = where;
}

void MySqlShowEventsStatement::accept0(MySqlASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(MySqlShowEventsStatement)))
  {
    acceptChild(visitor, schema);
    acceptChild(visitor, like);
    acceptChild(visitor, where);
  }
  visitor->endVisit(SharedObject(MySqlShowEventsStatement));
}
